package com.chen.recruit.domain;

import lombok.Data;

import java.io.Serializable;

/**
 * 用户角色对象 t_user_role
 *
 * @author cgy
 * @date 2022-08-20
 */
@Data
public class UserRole implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 中间关系id
     */
    private Integer id;
    /**
     * 用户id
     */
    private Integer userId;
    /**
     * 角色id
     */
    private Integer roleId;

    public UserRole(Integer userId, Integer roleId) {
        this.userId = userId;
        this.roleId = roleId;
    }

}
